package com.ebao.po;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import com.ebao.constants.UserType;

/**
 * @desc 邀请好友注册
 * 
 * 站内邀请、邮件站外邀请好友注册成功后,自动相互关注
 * 
 * 判断好友邮箱是否为NULL，为NULL表示站内邀请
 * 
 * @author snow
 * @date 2012-7-11
 */
@Entity
@Table(name = "T_Invite_Friend")
public class TInviteFriend implements Serializable {

	private static final long serialVersionUID = 5111824552147174920L;
	
	private Long id;
	private UserType inviterType;	// 
	private String inviter;			// 邀请者Id
	private UserType inviteredType;	// 
	private String invitered;		// 被邀请者Id
	private String email;			// 好友的邮箱
	private String inviteDate;		// 邀请日期

	@Id
	@GeneratedValue
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public UserType getInviterType() {
		return inviterType;
	}

	public void setInviterType(UserType inviterType) {
		this.inviterType = inviterType;
	}

	public String getInviter() {
		return inviter;
	}

	public void setInviter(String inviter) {
		this.inviter = inviter;
	}

	public UserType getInviteredType() {
		return inviteredType;
	}

	public void setInviteredType(UserType inviteredType) {
		this.inviteredType = inviteredType;
	}

	public String getInvitered() {
		return invitered;
	}

	public void setInvitered(String invitered) {
		this.invitered = invitered;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	@Column(length = 19)
	public String getInviteDate() {
		return inviteDate;
	}

	public void setInviteDate(String inviteDate) {
		this.inviteDate = inviteDate;
	}

}
